//
//  PywBaseApi.h
//  PywSdk
//
//  Created by Jade on 16/7/30.
//  Copyright © 2016年 zero. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MutableDictionary.h"

typedef void (^Successd)(NSString *status,id anyObjct);
typedef void (^Failure)(NSError *error);

@interface PywBaseApi : NSObject
@property (nonatomic,copy) Successd successd;
@property (nonatomic,copy) Failure failure;

+ (instancetype)manager;
- (NSError *)errorWithCode:(NSInteger)code;
- (NSError *)createErrorWithDomain:(NSString *)domain code:(NSInteger)code;

@end
